fix(v2): use dnf -q list --installed for accurate package detection#5219
fix(v2): use dnf -q list --installed for accurate package detection#5219leaanthony wants to merge 1 commit into
Conversation
The previous 'dnf info installed' command returns available packages (with Version info) even when the package is not installed, causing wails doctor to falsely report packages as installed on Fedora/RHEL. Use 'dnf -q list --installed' instead, which properly returns exit code 1 when a package is not installed. Fixes #4457
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 PR Triage Review ✅ Accepted Uses Platform: Linux (v2) Next Steps: Dispatching for Linux testing. Reviewed by Wails PR Reviewer Bot |
Summary
dnf info installed <pkg>withdnf -q list --installed <pkg>in the dnf package managerwails doctorto falsely report packages as installed on Fedora/RHELTest plan
v2/test/4457/dnf_test.gousing mock dnf scripts verify:PackageInstalledreturns falsePackageInstalledreturns trueFixes #4457